﻿<%@ Page AutoEventWireup="true" CodeBehind="Admin_Template.aspx.cs" Inherits="V5_EShop.Admin.Tools.Admin_Template"
    Language="C#" MasterPageFile="~/Includes/AdminMaster.Master" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="title">
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="head">
</asp:Content>
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="content">
    <table cellpadding="0" cellspacing="0" class="tablelist">
        <tr>
            <td class="headertext">
                位置导航：<a class="list_link" href="<%=this.ResolveUrl("~/") %>Admin/Admin_Index_Main.aspx"
                    target="main">首页</a> >> 模板管理
            </td>
        </tr>
        <tr>
            <td>
                <span><a href="?">管理首页</a></span> | <a href="?Action=Official">官方模板</a>
            </td>
        </tr>
    </table>
    <asp:MultiView ID="MultiViewList" runat="server">
        <asp:View ID="View1" runat="server">
            <table border="0" cellpadding="0" cellspacing="0" class="tablelist">
                <tr>
                    <td>
                        <ul class="theme">
                            <asp:Repeater ID="rpList" runat="server" OnItemCommand="rpList_ItemCommand">
                                <ItemTemplate>
                                    <li>
                                        <p>
                                            <img src="/Template/<%#Eval("TemplateDir") %>/<%#Eval("Image") %>" width="150" height="120"
                                                alt="" style="border: 1px solid #ccc;" /></p>
                                        <h5 style="margin: 5px 0 3px 0;">
                                            <%#Eval("Name") %></h5>
                                        <p>
                                            <input type="radio" name="SelectTemplate" value="<%#Eval("TemplateDir") %>" <%#Bind_TemplatePath(Eval("TemplateDir").ToString()) %> />
                                        </p>
                                        <p>
                                            <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%#Eval("TemplateDir") %>'
                                                CommandName="del" OnClientClick="return confirm('你确定要删除吗?');">删除</asp:LinkButton></p>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </td>
                </tr>
            </table>
            <table cellpadding="0" cellspacing="0" class="tablelist">
                <tr>
                    <td align="center">
                        <asp:Button ID="btnSetDefaultTemplate" runat="server" Text="设置为默认模板" OnClick="btnSetDefaultTemplate_Click"
                            CssClass="ds-btn ds-btn-ok" />
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <asp:GridView ID="GridView1" runat="server">
            </asp:GridView>
        </asp:View>
    </asp:MultiView>
</asp:Content>
